package com.ruoyi.cs.domain.dto.battle;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;

/**
 * @ClassName TBattleListResp
 * @Description TODO
 * @Author zz
 * @Date 2024/2/23
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class BattleBaseResp {
    @ApiModelProperty(value = "对战房间ID")
    private String battleId;

    @ApiModelProperty(value = "房主ID")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String homeownerUserid;

    @ApiModelProperty(value = "是否房主")
    private Boolean isHomeUser=false;

    @ApiModelProperty(value = "对战金额")
    private BigDecimal homeownerCost;

    @ApiModelProperty(value = "对战的状态： 0-等待中  1-对战中  2-已结束 ")
    private String battleStatus;

    @ApiModelProperty(value = "对战模式")
    private Integer battleMode;

    @ApiModelProperty(value = "对战类型 0会员对战 1官方对战 2 AI对战 3 粉丝对战")
    private String battleType;

    @ApiModelProperty(value = "对战人数")
    private Integer battleNum;

    @ApiModelProperty(value = "用户信息")
    private List<BattleUserVo> userVoList;

    @ApiModelProperty(value = "箱子信息")
    private List<BattleBoxVo> boxVoList;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class BattleUserVo{
        @ApiModelProperty(value = "用户头像")
        private String userPic;
        @ApiModelProperty(value = "用户名")
        private String userName;
        @ApiModelProperty(value = "坑位")
        private String pitlocation;
    }
}
